import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
// import store from "@/store";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '框架',
      redirect: '/home',

      // component: HelloWorld
      component: () => import('@/views/Manage.vue'),
      children:[
        { path: 'home',name: '首页',component: () => import('@/views/Home.vue')},
        { path: 'students',name: '学生管理',component: () => import('@/views/Students.vue')},
        { path: 'class',name: '教室管理',component: () => import('@/views/Class.vue')},
        { path: 'grade',name: '班级管理',component: () => import('@/views/Grade.vue')},

    ]
    },

    // {
    //   path:'/HomePage',
    //   name:'HomePage',
    //   component: HomePage,
    //   children:[
    //     {
    //       path:'/Students',
    //       name:'Students',
    //       component: Students,
    //     },
    //     {
    //       path:'/Home',
    //       name:'Home',
    //       component: Home,
    //     },
    //   ]
    // },



  ]
})


// const router = new VueRouter({
//   mode: 'history',
//   base: process.env.BASE_URL,
//   routes
// })

// export default router


